import request from '@/request/request'
export const EventDetails = params => {
    return request({
      method: 'POST',
      url: '/event/eventDetail',
      params
    })
  }
//   事件总个数
  export const EventNumber = () => {
    return request({
      method: 'POST',
      url: '/event/getEventCount',
    })
  }
//   网格力量
export const PowerGrid = () => {
    return request({
      method: 'POST',
      url: '/grid/getGridPower',
    })
  }
//   滚动数据
export const ScrollEvent = () => {
    return request({
      method: 'POST',
      url: '/event/getEventRoll',
    })
  }
//   重点服务人口
export const ServicesPopulation = () => {
    return request({
      method: 'POST',
      url: '/people/serviceStaffNum',
    })
  }
//   重点管理人员
export const ManagementPopulation = () => {
    return request({
      method: 'POST',
      url: '/people/focusSurveillance',
    })
  }
//   外籍人员
export const ForeignPopulation = () => {
    return request({
      method: 'POST',
      url: '/people/foreigners',
    })
  }
  // 获取事件列表
  export const tableDate = params => {
    return request({
      method: 'POST',
      url: '/event/getEventList',
      params
    })
  }
  //事件类型事件统计
  export const tableDates = () => {
    return request({
      method: 'POST',
      url:'/event/eventTypeCount',
      
    })
  }
  // 网格员类型事件统计
  export const WGstatistical = () => {
    return request({
      method: 'POST',
      url: '/event/eventUserTypeCount',
      
    })
  }
  // 街道
  export const community = () => {
    return request({
      method: 'POST',
      url: '/grid/gridCountStreet',
      
    })
  }
  // 社区
  export const communityand = id => {
    console.log(id);
    return request({
      method: 'POST',
      url: '/grid/gridCountCommunity',
      data:{
        gridCode:id
      }
    })
  }
  // 党政
  export const dz = () => {
    return request({
      method: 'POST',
      url: '/people/getPaytBuild',
      
    })
  }
  // 地图
  export function getGrid(params)  {
    return request({
      method: 'POST',
      url: '/grid/getGrid',
     params
    })
  }
  // 重点服务人员列表
  export function tableDateFW(params)  {
    return request({
      method: 'POST',
      url: '/people/serviceStaffList',
     params
    })
  }
  // 重点管理人员列表
  export function tableDateGL(params)  {
    return request({
      method: 'POST',
      url: '/people/focusSurveillanceList',
     params
    })
  }
// export function weatther(params) {
//     return request({
//         url: 'https://restapi.amap.com/v3/weather/weatherInfo?key=e80eace082b331e7da1bce2f3d7b73ec&city=370100',
//         method: 'get',
//         params
//     })
// }
// export function getMapBasicInfo(params) {
//     return request({
//         url: 'http://119.164.253.136:8090/gridManage/a/gridcockpit/gridcockpit/getMapBasicInfo',
//         method: 'get',
//         params
//     })
// }

